class Computer{
  int add(int x,int y){
    return x+y;
  }
}
public class Example4_6{
  public static void main(String args[]){
    Computer com = new Computer();
    int m = 100;
    int n = 200;
    int result = com.add(m,n);    //将m、n的值“传值”给参数x、y
    System.out.println(result);
    result = com.add(120+m,n*10+8);   //将表达式120+m和n*10+8的值“传值”给参数x、y
    System.out.println(result);
  }
}
